/*This file is part of Legend of the Dark Blade.

    Legend of the Dark Blade is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Legend of the Dark Blade is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser Public License for more details.

    You should have received a copy of the GNU Lesser Public License
    along with Legend of the Dark Blade.  If not, see <http://www.gnu.org/licenses/>.*/

#ifndef PLAYER_H
#define PLAYER_H 1

class Player{

public:

	Player();
	~Player();

	float x;
	float y;
	float old_x;
	float old_y;
	float xx;
	float yy;
	int dir;

	int health;

	bool onground;
	bool canjump;

	void respawn();
	void damage(int x);
	void move(bool left, bool right, bool jump);
	void collide(int map[15][2000]);//map
	void draw();

protected:
};


#endif

